module.exports = (sequelize,DataTypes) => {
    const User = sequelize.define('User', {
        // 在这里定义模型属性
        userId: {
          type: DataTypes.INTEGER,
          autoIncrement: true,
          primaryKey: true
        },
        username: {
          type: DataTypes.STRING(50),
          allowNull: false
        },
        password: {
          type: DataTypes.STRING(50),
          allowNull: false,
          defaultValue:"123"
        }
      }, {
        tableName: 'users'
      });
      return User
}